<?php

declare(strict_types=1);

namespace App\Chat\Request;

use Mine\MineFormRequest;

class TalkUrlRequest extends MineFormRequest
{
    public function saveRules(): array
    {
        return [
            'name' => 'required',
            'url' => 'required'
        ];
    }

    public function infoRules(): array
    {
        return [
            'id' => 'required',
        ];
    }


    public function updateRules(): array
    {
        return array_merge(['id' => 'required',$this->saveRules()]);
    }

    public function deleteRules(): array
    {
        return [
            'id' => 'required',
        ];
    }
}